package com.lxg.service.firstService;

import com.lxg.pojo.User;

public interface RegisterService {

    /**
     * 判断用户名是否被占用
     * @param username
     * @return
     */
    public User getUserByUsername(String username);

    /**
     * 判断邮箱是否被占用
     * @param email
     * @return
     */
    public User getUserByEmail(String email);

    /**
     * 判断手机号是否被占用
     * @param phone
     * @return
     */
    public User getUserByPhone(String phone);


    /**
     * 读者进行注册
     * @param username
     * @param name
     * @param password
     * @param email
     * @param phone
     * @return
     */
    public boolean ReaderRegister(String username,String password,String name,
                                  String sno,String grade,String email, String phone);

    User getUserBySno(String sno);
}
